package com.itaem.community.modules.vote.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.itaem.community.core.entity.Entity;
import java.time.LocalDate;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * <p>
 * 投票
 * </p>
 *
 * @author tomato
 * @since 2020-10-28
 */
@ToString(callSuper = true)
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("vote")
@ApiModel(value="VoteEntity对象", description="投票")
public class VoteEntity extends Entity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "发起投票的物业id")
    private Integer propertyId;

    @ApiModelProperty(value = "投票主题")
    private String topic;

    @ApiModelProperty(value = "投票内容")
    private String voteContent;

    @ApiModelProperty(value = "是否多选")
    private Boolean multiple;

    @ApiModelProperty(value = "是否删除")
    private Boolean deleted;

    @ApiModelProperty(value = "当前投票人数")
    private Integer votedNumber;

    @ApiModelProperty(value = "需投票的总人数")
    private Integer requiredNumber;

    @ApiModelProperty(value = "是否完成")
    private Boolean completed;

    @ApiModelProperty(value = "截止时间")
    private LocalDate deadline;

}
